﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace WindowsGame1
{
    class Camera
    {
        public Vector2 m_Position;
        public BaseObject m_Target;
        public Vector2 m_TargetPrev;
        public float m_fZoom;

        public Camera()
        {
            m_fZoom = 1;
            m_TargetPrev = new Vector2(0.0f, 0.0f);
        }

        public void Update(float deltaT)
        {
            m_fZoom = 1.0f;
            
            m_Position = m_Target.m_Position;
            m_Position.X -= 400/m_fZoom;
            m_Position.Y -= 300/m_fZoom;

            m_TargetPrev = m_Target.m_Position;
        }
    }
}
